home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14536 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Check if a file exists?
  5. Date: Mon, 15 Apr 96 12:01:34 GMT
  6. Organization: none
  7. Message-ID: <829569694snz@genesis.demon.co.uk>
  8. References: <829565947.AA00181@escan.demon.co.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <829565947.AA00181@escan.demon.co.uk>
  15.            bill@escan.demon.co.uk "Bill Birrell" writes:
  16.  
  17. > > That would be implemented in Unix using stat(),
  18. > > however that isn't a standard
  19. > > C library function.
  20. >
  21. >    That's odd, Lawrence. K&R Edn 1, Ch 8, P 170 says it is, as part of the
  22. >unix system interface, and refers to sys/stat.h for the definition of the stat
  23. >structure.
  24.  
  25. That just means it is defined as part of the Unix system interface. It
  26. doesn't make it part of the standard C library.
  27.  
  28. >Compatibility is listed as:-
  29. >
  30. >    unix,
  31. >    16 bit: dos, qwin,win, win dll
  32. >    32 bit: Dos32X
  33. >
  34. >    Note:
  35. >    use _stat for compatibility with ANSI naming conventions of non-ANSI
  36.                                                                  ^^^^^^^^
  37. >functions. Use stat and link with OLDNAMES.LIB for UNIX compatibility.
  38.  
  39. This says it isn't an ANSI C function.
  40.  
  41. -- 
  42. -----------------------------------------
  43. Lawrence Kirby | fred@genesis.demon.co.uk
  44. Wilts, England | 70734.126@compuserve.com
  45. -----------------------------------------
  46.